import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'title_cee1c0ba_3cns',
            name: "{{title_cee1c0ba_3cns}}",
            binding: 'title',
            updateOn: 'blur',
            defaultI18nValue: '商铺名',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "title", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'type_77a90d17_gcy0',
            name: "{{type_77a90d17_gcy0}}",
            binding: 'type',
            updateOn: 'blur',
            defaultI18nValue: '商铺类型',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "type", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'address_8d575769_vvup',
            name: "{{address_8d575769_vvup}}",
            binding: 'address',
            updateOn: 'blur',
            defaultI18nValue: '商铺地址',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "address", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '商户',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
